#include "../include/online/WebPage.hpp"
#include "../src/online/module2/WebPageTest.cpp"
#include <fstream>
#include <sstream>

// g++ WebPageTest.cpp WebPage.cpp -o test

using namespace std;

int main(){
    //const char* filename = 
    ifstream f("WebPageTest.dat");
    stringstream buffer;
    buffer << f.rdbuf();
    string file_contents = buffer.str();

    cout << "file contents:" << endl;
    cout << file_contents << endl << endl;

    WebPage wp(file_contents);
    cout << endl;

    // cout << wp.getDocId() << endl;
    // cout << wp.getTitle() << endl;

    wp.getWordsMap();
}
